<div class="bg-light lter b-b wrapper-sm">
    <h1 class="m-n font-thin h4">添加客户单位</h1>
</div>
<div class="wrapper-sm">
    <uib-tabset active="1" class="tab-container">
        <uib-tab heading="基本信息" index="1" select="steps.percent=20">
            <uib-progressbar value="steps.percent" class="progress-xs" type="success"></uib-progressbar>
            <form name="step1" id="clientAddForm" class="form-validation form-horizontal" novalidate ng-controller="clientManagentAddController">
                <div class="form-group">
                    <label class="col-lg-2 control-label">客户单位<span class="text-danger">*</span></label>
                    <div class="col-lg-4">
                        <input id="clientAdd_clientName" type="text" class="form-control input-sm" ng-model="name" required placeholder="请填写客户单位名称" name="name">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">客服专员<span class="text-danger">*</span></label>
                    <div class="col-lg-2">
                        <select id="clientAdd_serviceOfficerId" name="serviceOfficer" class="form-control input-sm" ng-model="serviceOfficerId" ng-options="x.id as x.realName for x in serviceOfficerIdDropDown" name="clientServiceOfficerId" required>
                            <option value="">请选择</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">商务专员<span class="text-danger">*</span></label>
                    <div class="col-lg-2">
                        <select id="clientAdd_businessOfficerId" name="businessOfficer" class="form-control input-sm" ng-model="businessOfficerId" ng-options="x.id as x.realName for x in businessOfficerDropDown" name="businessOfficerId" required>
                            <option value="">请选择</option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">客户地址<span class="text-danger">*</span></label>
                    <tms-address class="col-lg-6" province="provinceCode" city="cityCode" area="areaCode" city-list="CityList" area-list="AreaList" required="true">
                    </tms-address>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">详细地址<span class="text-danger">*</span></label>
                    <div class="col-lg-4">
                        <input id="clientAdd_address" type="text" class="form-control input-sm" ng-model="addess" placeholder="请填写详细地址" required name="address" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">手机号码<span class="text-danger">*</span></label>
                    <div class="col-lg-4">
                        <input id="clientAdd_phone" type="tel" class="form-control input-sm" ng-model="phoneNumber" placeholder="请填写手机号" name="phoneNumber" ng-pattern="/^1\d{10}$/" required />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">管理员账号<span class="text-danger">*</span></label>
                    <div class="col-lg-4">
                        <input id="clientAdd_adminUserName" type="text" class="form-control input-sm" ng-model="adminUserName" placeholder="请填写管理员账号" required name="adminUserName" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">管理员密码<span class="text-danger">*</span></label>
                    <div class="col-lg-4">
                        <input id="clientAdd_password" type="password" class="form-control input-sm" ng-minlength="6" ng-model="adminPassword" placeholder="请填写管理员密码" required name="adminPassword" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">重复管理员密码<span class="text-danger">*</span></label>
                    <div class="col-lg-4">
                        <input id="clientAdd_rePassword" type="password" class="form-control input-sm" ng-minlength="6" required ng-model="reAdminPassword" placeholder="请再次填写管理员密码" name="reAdminPassword" ui-validate=" '$value==adminPassword' " ui-validate-watch=" 'adminPassword' "
                            required ng-change="step1.reAdminPassword.$valid ? (steps.percent=20) : (steps.percent=15)" />
                        <span class="text-danger m-l-sm" ng-show='step1.reAdminPassword.$error.validator'>密码不匹配！</span>
                    </div>
                </div>
                <div class="form-group">
					<label class="col-lg-2 control-label">客户类型<span class="text-danger"></span></label>
					<div class="col-lg-2"> 
						<select id="client_type" class="form-control input-sm" ng-model="clientType" ng-options="x.value as x.text for x in clientTypeList"
							name="clientTypeId" >
                            <option value="">请选择</option>
                        </select>
					</div>
				</div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">产品</label>
                    <div class="col-lg-4">
                        <textarea class="form-control input-sm" ng-model="products" placeholder="请填写产品以逗号隔开" name="products"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">产品包装方式</label>
                    <div class="col-lg-4">
                        <input id="clientAdd_productPack" type="text" class="form-control input-sm" ng-model="productPack" placeholder="请填写产品包装方式" name="productPack" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">付款方式</label>
                    <div class="col-lg-4">
                        <input id="clientAdd_paidWay" type="text" class="form-control input-sm" ng-model="paidWay" placeholder="请填写付款方式" name="paidWay" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">备注</label>
                    <div class="col-lg-4">
                        <textarea class="form-control input-sm" ng-model="remarks" placeholder="请填写备注" name="remarks"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="m-t m-b col-lg-4">
                        <button id="clientAdd_back" class="btn btn-sm btn-default btn-rounded pull-right m-l-sm" ui-sref="app.client.client_Managent">返回</button>
                        <button id="clientAdd_save" type="submit" ng-disabled="step1.$invalid" class="btn btn-sm btn-default btn-rounded pull-right" ng-click="click()">保存</button>
                    </div>
                </div>

            </form>

        </uib-tab>
    </uib-tabset>
</div>